#ifndef __I2C_H
#define __I2C_H


extern void IIC_Init(void);                //初始化IIC的IO口
extern unsigned char IIC_ReadOneByte(unsigned char I2C_Addr,unsigned char addr);
extern unsigned char IICwriteByte(unsigned char dev, unsigned char reg, unsigned char data);
extern uint8_t IICwriteBytes(uint8_t dev, uint8_t reg, uint8_t length, uint8_t* data);
extern uint8_t IICwriteBit(uint8_t dev,uint8_t reg,uint8_t bitNum,uint8_t data);
extern uint8_t IICreadBytes(uint8_t SlaveAddress,uint8_t REG_Address,uint8_t len,uint8_t *data);

#endif

//------------------End of File----------------------------